package cn.wangzengqiang.study.designpattern.observer.java;

import java.util.Observable;


public class SubjectFor3d extends Observable {
    private String msg;

    public String getMsg() {
        return msg;
    }

    /**
     * 主题更新消息
     *
     * @param msg
     */
    public void setMsg(String msg) {
        this.msg = msg;
        setChanged();
        notifyObservers();
    }
}
